import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service

#创建浏览器驱动对象
driver_path="../driver/chromedriver.exe"
service=Service(executable_path=driver_path)

driver = webdriver.Chrome(service=service) #出不出来结果换成 Edge()
#下载的驱动地址
print(driver.service.path)

#打开百度首页
driver.get("https://www.baidu.com")
time.sleep(20)
driver.quit()









